3.1343 \(\int \frac{A+B x}{(a+c x^2)^2} \, dx\)

Optimal. Leaf size=57 \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}-\frac{a B-A c x}{2 a c \left (a+c x^2\right )} \]

[Out]

-(a*B - A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*Sqrt[c])

________________________________________________________________________________________

Rubi [A]  time = 0.0166179, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {639, 205} \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}-\frac{a B-A c x}{2 a c \left (a+c x^2\right )} \]

Antiderivative was successfully verified.

[In]

Int[(A + B*x)/(a + c*x^2)^2,x]

[Out]

-(a*B - A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*Sqrt[c])

Rule 639

Int[((d_) + (e_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((a*e - c*d*x)*(a + c*x^2)^(p + 1))/(2*a
*c*(p + 1)), x] + Dist[(d*(2*p + 3))/(2*a*(p + 1)), Int[(a + c*x^2)^(p + 1), x], x] /; FreeQ[{a, c, d, e}, x]
&& LtQ[p, -1] && NeQ[p, -3/2]

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin{align*} \int \frac{A+B x}{\left (a+c x^2\right )^2} \, dx &=-\frac{a B-A c x}{2 a c \left (a+c x^2\right )}+\frac{A \int \frac{1}{a+c x^2} \, dx}{2 a}\\ &=-\frac{a B-A c x}{2 a c \left (a+c x^2\right )}+\frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}\\ \end{align*}

Mathematica [A]  time = 0.0270763, size = 57, normalized size = 1. \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{c}}+\frac{A c x-a B}{2 a c \left (a+c x^2\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x)/(a + c*x^2)^2,x]

[Out]

(-(a*B) + A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*Sqrt[c])

________________________________________________________________________________________

Maple [A]  time = 0.003, size = 49, normalized size = 0.9 \begin{align*}{\frac{2\,Acx-2\,aB}{4\,ac \left ( c{x}^{2}+a \right ) }}+{\frac{A}{2\,a}\arctan \left ({cx{\frac{1}{\sqrt{ac}}}} \right ){\frac{1}{\sqrt{ac}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)/(c*x^2+a)^2,x)

[Out]

1/4*(2*A*c*x-2*B*a)/a/c/(c*x^2+a)+1/2*A/a/(a*c)^(1/2)*arctan(x*c/(a*c)^(1/2))

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x^2+a)^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.80091, size = 301, normalized size = 5.28 \begin{align*} \left [\frac{2 \, A a c x - 2 \, B a^{2} -{\left (A c x^{2} + A a\right )} \sqrt{-a c} \log \left (\frac{c x^{2} - 2 \, \sqrt{-a c} x - a}{c x^{2} + a}\right )}{4 \,{\left (a^{2} c^{2} x^{2} + a^{3} c\right )}}, \frac{A a c x - B a^{2} +{\left (A c x^{2} + A a\right )} \sqrt{a c} \arctan \left (\frac{\sqrt{a c} x}{a}\right )}{2 \,{\left (a^{2} c^{2} x^{2} + a^{3} c\right )}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x^2+a)^2,x, algorithm="fricas")

[Out]

[1/4*(2*A*a*c*x - 2*B*a^2 - (A*c*x^2 + A*a)*sqrt(-a*c)*log((c*x^2 - 2*sqrt(-a*c)*x - a)/(c*x^2 + a)))/(a^2*c^2
*x^2 + a^3*c), 1/2*(A*a*c*x - B*a^2 + (A*c*x^2 + A*a)*sqrt(a*c)*arctan(sqrt(a*c)*x/a))/(a^2*c^2*x^2 + a^3*c)]

________________________________________________________________________________________

Sympy [A]  time = 0.481538, size = 90, normalized size = 1.58 \begin{align*} A \left (- \frac{\sqrt{- \frac{1}{a^{3} c}} \log{\left (- a^{2} \sqrt{- \frac{1}{a^{3} c}} + x \right )}}{4} + \frac{\sqrt{- \frac{1}{a^{3} c}} \log{\left (a^{2} \sqrt{- \frac{1}{a^{3} c}} + x \right )}}{4}\right ) + \frac{A c x - B a}{2 a^{2} c + 2 a c^{2} x^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x**2+a)**2,x)

[Out]

A*(-sqrt(-1/(a**3*c))*log(-a**2*sqrt(-1/(a**3*c)) + x)/4 + sqrt(-1/(a**3*c))*log(a**2*sqrt(-1/(a**3*c)) + x)/4
) + (A*c*x - B*a)/(2*a**2*c + 2*a*c**2*x**2)

________________________________________________________________________________________

Giac [A]  time = 1.21482, size = 63, normalized size = 1.11 \begin{align*} \frac{A \arctan \left (\frac{c x}{\sqrt{a c}}\right )}{2 \, \sqrt{a c} a} + \frac{A c x - B a}{2 \,{\left (c x^{2} + a\right )} a c} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x^2+a)^2,x, algorithm="giac")

[Out]

1/2*A*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*a) + 1/2*(A*c*x - B*a)/((c*x^2 + a)*a*c)